import Vue from 'vue'
import Router from 'vue-router'
import Layout from '#/Layout'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/', name: '/', component: Layout,
      children: [
        { path: 'brandList4YIXIN', name: 'brandList4YIXIN', component: resolve => require(['#/spead/BrandList4YIXIN'], resolve), meta: { title: '' } },
        { path: 'newsList', name: 'newsList', component: resolve => require(['#/spead/NewsList'], resolve), meta: { title: '' } },
        { path: 'spread', name: 'spread', component: resolve => require(['#/spead/Spread'], resolve), meta: { title: '' } },
        { path: 'spreadList', name: 'spreadList', component: resolve => require(['#/spead/SpreadList'], resolve), meta: { title: '' } },
        { path: 'newslinkman', name: 'newslinkman', component: resolve => require(['#/spead/NewsLinkman'], resolve), meta: { title: '' } },
        { path: 'user', name: 'user', component: resolve => require(['#/User'], resolve), meta: { title: '我的资料' } },
        { path: 'myIntegral', name: 'myIntegral', component: resolve => require(['#/MyIntegral'], resolve), meta: { title: '我的积分' } },
        { path: 'collectList', name: 'collectList', component: resolve => require(['#/collect/CollectList'], resolve), meta: { title: '' } },
        { path: 'collect', name: 'collect', component: resolve => require(['#/collect/Collect'], resolve), meta: { title: '' } },
        { path: 'collectReceiptList', name: 'collectReceiptList', component: resolve => require(['#/collect/CollectReceiptList'], resolve), meta: { title: '' } },
        { path: 'collectReceipt', name: 'collectReceipt', component: resolve => require(['#/collect/CollectSingleReceipt'], resolve), meta: { title: '' } },
        { path: 'activityList', name: 'activityList', component: resolve => require(['#/activity/activityList'], resolve), meta: { title: '' } },
        { path: 'activity', name: 'activity', component: resolve => require(['#/activity/activity'], resolve), meta: { title: '' } },
        { path: 'activityintroduce', name: 'activityintroduce', component: resolve => require(['#/activity/ActivityIntroduce'], resolve), meta: { title: '' } },
        { path: 'masterSlave', name: 'masterSlave', component: resolve => require(['#/activity/MasterSlave'], resolve), meta: { title: '' } },
        { path: 'travel', name: 'travel', component: resolve => require(['#/activity/Travel'], resolve), meta: { title: '' } },
        { path: 'vote', name: 'vote', component: resolve => require(['#/community/Vote'], resolve), meta: { title: '' } },
        { path: 'invite', name: 'invite', component: resolve => require(['#/activity/Invite'], resolve), meta: { title: '' } },
        { path: 'question', name: 'question', component: resolve => require(['#/community/Question'], resolve), meta: { title: '' } },
        { path: 'applicationList', name: 'applicationList', component: resolve => require(['#/activity/ApplicationList'], resolve), meta: { title: '' } },
        { path: 'application', name: 'application', component: resolve => require(['#/activity/Application'], resolve), meta: { title: '' } },
        { path: 'receivedata', name: 'receivedata', component: resolve => require(['#/activity/ReceiveData'], resolve), meta: { title: '' } },
        { path: 'mktStore', name: 'lbs', component: resolve => require(['#/marketing/Store'], resolve), meta: { title: '' } },
        { path: 'mktConsult', name: 'contact', component: resolve => require(['#/marketing/Consult'], resolve), meta: { title: '咨询' } },
      ]
    },
  ]
})
